/**
 * Created by Administrator on 2015/12/22.
 */
var Promise = require('promise');
var logger = require('log4js').getLogger('resourcesService');
var comm = require('../../utils/commonUtils');
var mailUtil = require('../../utils/mail');
var resourcesDao = require('../dao/ResourcesDao');
var resourcesService = {};

resourcesService.save = function(resource){
    return resourcesDao.save(resource);
}

resourcesService.getByArticleId = function(articleId){
    var params = {};
    params.articleId = articleId;
    return resourcesDao.getByParams(params,'id');
}
module.exports = resourcesService;
